<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    *{margin: 0;padding: 0;}
    div{
      height: 100vh;
      background: rgba(0, 0, 0, 0.7);
      color: #fff;
      font-size: 20vh;
      text-align: center;
      line-height: 100vh;
    }
    .box.img:nth-child(2){
      background-image: url('https://t7.baidu.com/it/u=1732966997,2981886582&fm=193&f=GIF');
      background-size: cover;
      background-position: center center;
      
      background-attachment: fixed; 
    }
    .box.img:nth-child(4){
      background-image: url('https://t7.baidu.com/it/u=1785207335,3397162108&fm=193&f=GIF');
      background-attachment: fixed; 
    }
    .box.img:nth-child(6){
      background-image: url('https://t7.baidu.com/it/u=4265852580,160349292&fm=193&f=GIF');
      background-attachment: fixed; 
    }
    .box.img:nth-child(8){
      background-image: url('https://t7.baidu.com/it/u=3659156856,3928250034&fm=193&f=GIF');
      background-attachment: fixed; 
    }
  </style>
</head>
<body>
  <div class="box">1</div>
  <div class="box img">2</div>
  
  <div class="box">3</div>
  <div class="box img">4</div>

  <div class="box">5</div>
  <div class="box img">6</div>

  <div class="box">7</div>
  <div class="box img">8</div>
</body>
</html>